Micron Document
<!DOCTYPE html>
<html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-0 vector-toc-not-available vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-0 skin-theme-clientpref-day vector-sticky-header-enabled" lang="de" dir="ltr"><head>
<meta charset="UTF-8">
<title>Infixnotation</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="./_res_/favicon.png">
<link rel="canonical" href="https://de.wikipedia.org/wiki/Infixnotation"> <link href="./_mw_/ext.math.styles.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.wikimediamessages.styles.css" rel="stylesheet" type="text/css">
<link href="./_mw_/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./_mw_/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./_mw_/skins.vector.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link href="./_mw_/ext.gadget.citeRef.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.defaultPlainlinks.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.dewikiCommonHide.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.dewikiCommonLayout.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.dewikiCommonStyle.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.dewikiDarkmode.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.dewikiResponsive.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.specialSearch.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="./_mw_/site.styles.css">
<link rel="stylesheet" type="text/css" href="./_mw_/noscript.css">
<link rel="stylesheet" type="text/css" href="./_res_/footer.css">
<link rel="stylesheet" type="text/css" href="./_res_/vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Infixnotation rootpage-Infixnotation skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">Infixnotation</span></h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="contentSub">
<div id="mw-content-subtitle"></div>
</div>
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="de" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="de" dir="ltr"><p>Die <b>Infixnotation</b> ist die allgemein gebräuchliche Form der <a href="Mathematische_Notation" title="Mathematische Notation">mathematischen Notation</a>, bei der die <a href="Operator_(Mathematik)" title="Operator (Mathematik)">Operatoren</a> zwischen die <a href="Operator_(Mathematik)#Operand" title="Operator (Mathematik)">Operanden</a> gesetzt werden. Sie wird auch <i><a href="Algebra" title="Algebra">Algebraische</a> Notation</i> genannt. Beispiel:
</p>
<pre>1 + 2 · 8 / 12
</pre>
<p>Allerdings kann diese Darstellung zu Verwirrung führen, da das Ergebnis von der <a href="Operatorrangfolge" title="Operatorrangfolge">Operatorrangfolge</a> (Reihenfolge der Abarbeitung der Rechenoperationen) abhängt.
</p><p>Bei o.&nbsp;g. Beispiel sind z.&nbsp;B. folgende Abarbeitungen denkbar:
</p>
<ul><li>von links nach rechts:</li></ul>
<pre>1 + 2 = 3
3 · 8 = 24
24 / 12 = 2
</pre>
<ul><li><a href="Punktrechnung_vor_Strichrechnung" title="Punktrechnung vor Strichrechnung">Punktrechnung vor Strichrechnung</a> (allgemein gebräuchliche Form):</li></ul>
<pre>2 · 8 = 16
16 / 12 = 1,333...
1 + 1,333... = 2,333...
</pre>
<p>Doch auch hier gibt es noch Mehrdeutigkeiten, etwa bei dem Ausdruck <span style="font-family:monospace;">1/2·3</span>:
</p>
<ul><li>von rechts nach links als <span style="font-family:monospace;">1/(2·3)</span>:</li></ul>
<pre>2 · 3 = 6
1 / 6 = 0,1666...
</pre>
<ul><li>von links nach rechts als <span style="font-family:monospace;">(1/2)·3</span> (allgemein gebräuchliche Form)</li></ul>
<pre>1 / 2 = 0,5
0,5 · 3 = 1,5
</pre>
<p>Man hat sich deshalb bei der Infixnotation auf bestimmte Regeln zur Abarbeitung komplexerer Rechenoperationen geeinigt. Diese legen Prioritäten für einzelne Operatoren-Gruppen fest. So wird zum Beispiel Punktrechnung (<a href="Multiplikation" title="Multiplikation">Multiplikation</a>, <a href="Division_(Mathematik)" title="Division (Mathematik)">Division</a>) vor der Strichrechnung (<a href="Addition" title="Addition">Addition</a>, <a href="Subtraktion" title="Subtraktion">Subtraktion</a>) ausgeführt. Treffen mehrere Punktrechnungen oder mehrere Strichrechnungen aufeinander, dann werden sie von links nach rechts ausgewertet; man sagt, die betroffenen Operatoren sind <a href="Operatorassoziativit%C3%A4t" title="Operatorassoziativität">linksassoziativ</a>.
</p><p>Noch vor den Punktrechnungen werden <a href="Potenz_(Mathematik)" title="Potenz (Mathematik)">Potenzierungen</a> ausgewertet, sodass z.&nbsp;B. <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a\cdot b^{c}=a\cdot (b^{c})}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>a</mi>
<mo>⋅<!-- ⋅ --></mo>
<msup>
<mi>b</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>c</mi>
</mrow>
</msup>
<mo>=</mo>
<mi>a</mi>
<mo>⋅<!-- ⋅ --></mo>
<mo stretchy="false">(</mo>
<msup>
<mi>b</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>c</mi>
</mrow>
</msup>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle a\cdot b^{c}=a\cdot (b^{c})}</annotation>
</semantics>
</math></span><img src="./_assets_/eb734a37dd21ce173a46342d1cc64c92/938f81ed05cca1bfb218fbe8d9336cdf87e0610d.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:14.609ex; height:2.843ex;" alt="{\displaystyle a\cdot b^{c}=a\cdot (b^{c})}" loading="lazy"></span> ist. Die Potenzierung ist zudem <a href="Operatorassoziativit%C3%A4t" title="Operatorassoziativität">rechtsassoziativ</a>, wird also im Gegensatz zu Punkt- und Strichrechnungen von rechts nach links ausgewertet. Das bedeutet, dass beispielsweise der Ausdruck <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a^{b^{c^{d}}}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<msup>
<mi>b</mi>
<mrow class="MJX-TeXAtom-ORD">
<msup>
<mi>c</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>d</mi>
</mrow>
</msup>
</mrow>
</msup>
</mrow>
</msup>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle a^{b^{c^{d}}}}</annotation>
</semantics>
</math></span><img src="./_assets_/eb734a37dd21ce173a46342d1cc64c92/0cf45bf06138e2abe9e995f07e731289193680f9.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:3.741ex; height:3.509ex;" alt="{\displaystyle a^{b^{c^{d}}}}" loading="lazy"></span> als <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a^{(b^{(c^{d})})}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mo stretchy="false">(</mo>
<msup>
<mi>b</mi>
<mrow class="MJX-TeXAtom-ORD">
<mo stretchy="false">(</mo>
<msup>
<mi>c</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>d</mi>
</mrow>
</msup>
<mo stretchy="false">)</mo>
</mrow>
</msup>
<mo stretchy="false">)</mo>
</mrow>
</msup>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle a^{(b^{(c^{d})})}}</annotation>
</semantics>
</math></span><img src="./_assets_/eb734a37dd21ce173a46342d1cc64c92/e06d0b3ac2b3c7ca6fde058e3fd640263dabc642.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:6.059ex; height:3.509ex;" alt="{\displaystyle a^{(b^{(c^{d})})}}" loading="lazy"></span> gelesen werden muss.
</p><p>Um die solcherart vordefinierte Operatorrangfolge zu verändern, benutzt man unterschiedliche Arten von Gliederungszeichen, wie die hier schon verwendeten Klammern. Mehr zum Thema der Gliederungszeichen siehe unter <i><a href="Operatorrangfolge#Gliederungszeichen" title="Operatorrangfolge">Operatorrangfolge: Gliederungszeichen</a></i>.
</p>
<div class="mw-heading mw-heading2"><h2 id="Literatur">Literatur</h2></div>
<ul><li>Robert Kowalski: <cite style="font-style:italic">Logic for Problem Solving, Revisited</cite>. Imperial College London, 1979, ISBN 978-3-7347-1585-3, Chapter 2: Infix Notation, <span style="white-space:nowrap">S.<span style="display:inline-block;width:.2em">&nbsp;</span>22–23</span>.<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abookitem&amp;rfr_id=info:sid/de.wikipedia.org:Infixnotation&amp;rft.atitle=Chapter+2%3A+Infix+Notation&amp;rft.au=Robert+Kowalski&amp;rft.btitle=Logic+for+Problem+Solving%2C+Revisited&amp;rft.date=1979&amp;rft.genre=bookitem&amp;rft.isbn=9783734715853&amp;rft.pages=22-23&amp;rft.pub=Imperial+College+London" style="display:none">&nbsp;</span></li></ul>
<div class="mw-heading mw-heading2"><h2 id="Siehe_auch">Siehe auch</h2></div>
<ul><li>Weitergehende Informationen finden sich in den Artikeln <i><a href="Operatorrangfolge" title="Operatorrangfolge">Operatorrangfolge</a></i> und <i><a href="Operatorassoziativit%C3%A4t" title="Operatorassoziativität">Operatorassoziativität</a></i>.</li>
<li>Einige andere <a href="Mathematische_Notation" title="Mathematische Notation">Notationen</a> sind in den Artikeln <a href="Pr%C3%A4fixnotation" class="mw-redirect" title="Präfixnotation">Präfixnotation</a>, <a href="Umgekehrte_polnische_Notation" title="Umgekehrte polnische Notation">Postfixnotation</a>, <a href="Begriffsschriftnotation" class="mw-redirect" title="Begriffsschriftnotation">Begriffsschriftnotation</a>, <a href="Existential_Graphs" title="Existential Graphs">Existential Graphs</a> beschrieben.</li>
<li>Mit dem <a href="Shunting-yard-Algorithmus" title="Shunting-yard-Algorithmus">Shunting-yard-Algorithmus</a> kann eine Infixnotation in die <a href="Umgekehrte_polnische_Notation" title="Umgekehrte polnische Notation">umgekehrte polnische Notation</a> oder einen abstrakten Syntaxbaum umgewandelt werden.</li></ul></div><!--htdig_noindex--><div><div class="zim-footer">
Dieser Artikel wurde von <a class="external text" title="Zuletzt bearbeitet am 2024-03-18" href="https://de.wikipedia.org/wiki/?title=Infixnotation&amp;oldid=243221576">Wikipedia</a> herausgegeben. Der Text ist unter <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.de">Creative Commons Attribution-Share Alike 4.0</a> verfügbar, sofern nicht anders angegeben. Für die Mediendateien können zusätzliche Bedingungen gelten.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>
<script src="./_webp_/webpHandler.js"></script>

</body></html>